﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>Knockout: Anonymous Template</title>
    <link href="/css/styles.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="/scripts/knockout-2.0.0.js" type="text/javascript"></script>
    <script src="/scripts/koExternalTemplateEngine_all.js" type="text/javascript"></script>
    <script src="/js/data.js" type="text/javascript"></script>
    <script src="/js/02-ko-external-template.js" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <div class="header" data-bind="with: metadata">
            <h1 data-bind="text: pageTitle">
            </h1>
            <div data-bind="with:personal">
                <a href="00-index.html">Index</a> <a data-bind="attr: {href: link, title: text}, text: text" class="personalCss"></a>
            </div>
        </div>
        <div id="main">
            <div class="leftFloat">
                <div>
                    <span class="caption">Select a Product</span>
                </div>
                <ul class="smallList" data-bind="template: {name: 'productList', foreach:products}">
                </ul>
            </div>
            <!-- ko if: selectedProduct -->
            <div class="leftFloat">
                <div class="productDetailsArea">
                    <!-- ko template: {name: 'productDetails', data: selectedProduct}-->
                    <!-- /ko -->
                </div>
            </div>
            <!-- /ko -->
        </div>
    </div>
</body>
</html>
